from django import forms
class MessageBoardForm(forms.Form):
    title=forms.CharField(min_length=2,max_length=20,label='标题',
                          error_messages={
                              "min_length":'标题最小长度不能少于2!',
                              "max_length":'标题最大长度不能超过20！'
                          })
    content=forms.CharField(widget=forms.Textarea,label='内容')
    email=forms.EmailField(label='邮箱')
